package com.franklin.ideaplugin.easytesting.rpc.entity;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Ye Junhui
 * @since 2023/5/15
 */
@Data
@Builder
public class ETRsp<T> implements Serializable {

    private String code;

    private String msg;

    private T data;

    public static <T> ETRsp<T> success(T data){
        return ETRsp.<T>builder()
                .code("200")
                .msg("success")
                .data(data)
                .build();
    }
}
